package com.cn.ycy.aop.annation;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
public class ServiceImpl implements Service {

  Logger logger = LoggerFactory.getLogger(ServiceImpl.class);

  public void doWork() {
    System.out.println("做功课了。。。");
  }

  @Override
  public void play() {
    logger.warn("出门玩了");
  }


  @Override
  public void playround() {
    logger.warn("出门玩了");
  }


}
